package com.dietmanager.formatbuilder;

import java.util.ArrayList;
import java.util.Date;

import com.dietmanager.model.DailyLogModel;
import com.dietmanager.model.FoodModel;

/**
 * 
 * @author Petar, Danijel
 * @description Class that specifies what type of file log will be created
 */

public class SummeryLogDirector {
	public CSVBuilder csvBuilder;
	public JSONBuilder jsonBuilder;
	public XMLBuilder xmlBuilder;
	public DailyLogModel dailyLogModel;
	public ArrayList<FoodModel> fm;
	public Date date;
	
	//Main constructor
	public SummeryLogDirector(Date currentDate) {
		csvBuilder = new CSVBuilder();
		jsonBuilder = new JSONBuilder();
		xmlBuilder = new XMLBuilder();
		date = currentDate;
		fm = dailyLogModel.getFoods(date);
	}
	//create CSV log
	public void createCSVSummeryLog(String logType) {
		
	}
	//create JSON log
	public void createJSONSummeryLog(String logType) {
		jsonBuilder.buildFormat(fm,date);
	}
	//create XML log
	public void createXMLSummeryLog(String logType) {
		
	}
}
